package ldh.im.rpc.exception;

public class RpcResultErrorCode implements ErrorCode {

    private int errorCode;
    private String errorMessage;

    public RpcResultErrorCode(int errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    @Override
    public int getErrorCode() {
        return errorCode;
    }

    @Override
    public String getErrorMessage() {
        return errorMessage;
    }
}
